<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>错误代码</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="xml.case-folding.html">« Case Folding(大写转换)</a></li>
      <li style="float: right;"><a href="xml.encoding.html">字符编码 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.xml.html">XML 解析器</a></li>
    <li>错误代码</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="xml.error-codes" class="article">
 <h1>错误代码</h1>

 <p class="para">
  下列常量是 XML 相关的错误代码(<span class="function"><a href="function.xml-parse.html" class="function">xml_parse()</a></span>函数的返回值):
  <ul class="simplelist">
   <li class="member">XML_ERROR_NONE</li>
   <li class="member">XML_ERROR_NO_MEMORY</li>
   <li class="member">XML_ERROR_SYNTAX</li>
   <li class="member">XML_ERROR_NO_ELEMENTS</li>
   <li class="member">XML_ERROR_INVALID_TOKEN</li>
   <li class="member">XML_ERROR_UNCLOSED_TOKEN</li>
   <li class="member">XML_ERROR_PARTIAL_CHAR</li>
   <li class="member">XML_ERROR_TAG_MISMATCH</li>
   <li class="member">XML_ERROR_DUPLICATE_ATTRIBUTE</li>
   <li class="member">XML_ERROR_JUNK_AFTER_DOC_ELEMENT</li>
   <li class="member">XML_ERROR_PARAM_ENTITY_REF</li>
   <li class="member">XML_ERROR_UNDEFINED_ENTITY</li>
   <li class="member">XML_ERROR_RECURSIVE_ENTITY_REF</li>
   <li class="member">XML_ERROR_ASYNC_ENTITY</li>
   <li class="member">XML_ERROR_BAD_CHAR_REF</li>
   <li class="member">XML_ERROR_BINARY_ENTITY_REF</li>
   <li class="member">XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF</li>
   <li class="member">XML_ERROR_MISPLACED_XML_PI</li>
   <li class="member">XML_ERROR_UNKNOWN_ENCODING</li>
   <li class="member">XML_ERROR_INCORRECT_ENCODING</li>
   <li class="member">XML_ERROR_UNCLOSED_CDATA_SECTION</li>
   <li class="member">XML_ERROR_EXTERNAL_ENTITY_HANDLING</li>
  </ul>
 </p>
</div>
</div></div></body></html>